from flask import Flask
from test import users
from core_oms import core_oms
from cleardisk import cleardisk
import time

# 实例化应用
app = Flask(__name__)
# 注册蓝图
app.register_blueprint(users, url_prefix='/users')
app.register_blueprint(core_oms, url_prefix='/core_oms')
app.register_blueprint(cleardisk, url_prefix='/cleardisk')


@app.route('/', methods=["GET","POST"])
def hello_world():
    print("asdasd")
    time.sleep(180)
    return "hello_world"


if __name__ == '__main__':
    app.run()
